home *** CD-ROM | disk | FTP | other *** search
- PXFSTRUCTFREE(3F) Last changed: 1-22-99
-
-
- NNAAMMEE
- PPXXFFSSTTRRUUCCTTFFRREEEE - Deletes the instance of the structure referenced by
- _j_h_a_n_d_l_e
-
- SSYYNNOOPPSSIISS
- IINNTTEEGGEERR _j_h_a_n_d_l_e,, _i_e_r_r_o_r
- CCAALLLL PPXXFFSSTTRRUUCCTTFFRREEEE ((_j_h_a_n_d_l_e,, _i_e_r_r_o_r))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- F77 compiler.
-
- The PPXXFFSSTTRRUUCCTTFFRREEEE routine deletes the instance of the structure
- referenced by _j_h_a_n_d_l_e. This structure should have been created by
- PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F).
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
- kind unless documented otherwise. On UNICOS and UNICOS/mk, default
- kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
- IRIX, the default kind is KKIINNDD==44.
-
- The following are arguments to PPXXFFSSTTRRUUCCTTFFRREEEE():
-
- _j_h_a_n_d_l_e An input integer variable. _j_h_a_n_d_l_e is a handle for a
- structure.
-
- _i_e_r_r_o_r An output integer variable. Upon successful completion of
- PPXXFFSSTTRRUUCCTTFFRREEEE(()), _i_e_r_r_o_r is set to 0. This routine will set
- _i_e_r_r_o_r to EEBBAADDHHAANNDDLLEE if _j_h_a_n_d_l_e is an invalid handle (UNICOS
- or UNICOS/mk systems only).
-
- EEXXAAMMPPLLEESS
- program test
- integer jstat, ierr, ilen, imode, istino
- character*10 path
- * Create STRUCTURE to be used by stat()
- call pxfstructcreate('stat',jstat,ierr)
- if (ierr.ne.0) then
- print *,'FAIL: error from pxfstructcreate = ',ierr
- endif
-
- * Fill STRUCTURE through stat()
- ilen = 0
- call pxfstat(path, ilen, jstat,ierr)
- if (ierr.ne.0) then
- print *,'FAIL: error from pxfstat = ',ierr
- endif
- * Retrieve components st_ino and mode from STRUCTURE
- call pxfintget(jstat,'st_ino',isino,ierr)
- call pxfintget(jstat,'mode',imode,ierr)
- print *, 'st_ino =',stino
- print *, 'mode =',mode
- * Free STRUCTURE
- call pxfstructfree(jstat,ierr)
- if (ierr.ne.0) then
- print *,'FAIL: error from pxfstructfree = ',ierr
- endif
- end
-
- SSEEEE AALLSSOO
- PPXXFFSSTTRRUUCCTTCCRREEAATTEE
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed
- version of this man page.
-